package com.freemalll.merchant.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.freemalll.merchant.domain.dto.MerBackCardDto;
import com.freemalll.merchant.domain.entity.MerAccountLicense;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 映射层。
 *
 * @author songshixiong
 * @since 2025-05-15
 */
@Mapper
public interface MerAccountLicenseMapper extends BaseMapper<MerAccountLicense> {


    @Select(" select mer_id,accl_name as cardAccountName," +
            " accl_bank_no as cardNo," +
            " accl_bank_name as cardBankName," +
            " accl_code as cardPrcptcd" +
            " from mer_account_license where delete_flag = 0 and mer_id = #{merId}  ")
    List<MerBackCardDto> listByMerId(@Param("merId") String merId);
}
